import type { IModalConfig } from '@/components/page-modal/type';

const modalConfig: IModalConfig = {
  header: {
    titleOnCreate: '创建菜单',
    titleOnEdit: '编辑菜单'
  },
  pageName: 'department',
  formItems: [
    {
      label: '菜单名称',
      prop: 'name',
      type: 'input',
      placeholder: '请输入菜单名称'
    },
    {
      label: '菜单类型',
      prop: 'type',
      type: 'select',
      placeholder: '请选择菜单类型',
      options: [
        {
          label: '一级菜单',
          value: 1
        },
        {
          label: '二级菜单',
          value: 2
        }
      ]
    },
    {
      label: '菜单路由',
      prop: 'url',
      type: 'select',
      placeholder: '请输入菜单对应的路由'
    },
    {
      label: '菜单排序',
      prop: 'sort',
      type: 'input',
      placeholder: '请输入菜单排序'
    },
    {
      label: '父级菜单',
      prop: 'parentId',
      type: 'select',
      placeholder: '请选择父级菜单',
      options: []
    }
  ]
};

export default modalConfig;
